/**
 *  Model1
 *  Author: hakute
 *  Description: 
 */

model Model1

global {
	/** Insert the global definitions, variables and actions here */
	file shape_file_bounds <- file('../includes/Batiment/Bounds.shp');
	file shape_file_obtacles <- file('../includes/Batiment/Obtacles.shp');
	file shape_file_areas <- file('../includes/Batiment/Area.shp');
	file shape_file_safe_areas <- file('../includes/Batimant/Save_place.shp');
	
	init {
		create obtacles from: shape_file_obtacles ;
		create areas from: shape_file_areas ;
		create safe_areas from: shape_file_safe_areas;
	}
}

environment bounds: shape_file_bounds torus:false;

entities {
	/** Insert here the definition of the species of agents */
	species obtacles {
		string type; 
		rgb color <- rgb([155,0,0])  ;
		aspect base {
			draw geometry: shape color: color ;
		}
	}
	species areas  {
		rgb color <- rgb('white') ;
		aspect base {
			draw geometry: shape color: color ;
		}
	}
	species safe_areas {
		rgb color <- rgb([155,0,0]) ;
		aspect base {
			draw geometry: shape color: color ;
		}
	}
	
		
}

experiment Model1 type: gui {
	/** Insert here the definition of the input and output of the model */
	output {
		display super_marcher refresh_every: 1 {
			species obtacles aspect: base ;
			species safe_areas aspect: base;
		}
	}
}